function validate(){

  var oUname = document.register.uname;
  if(oUname.value == ""){
    alert("Please enter name ");
    oUname.focus();
    return false;
  } else
  if(oUname.value.length < 6){
    alert("Name should be 6 char long");
    oUname.focus();
    oUname.select();
    return false;
  } else
  return true;
}
